import { ILogin } from "./type"
import { post,get } from "/@/utils/axios/https"

/**
 * 用户登录
 * @param params 
 */
export const login = (params:ILogin):Promise<IResponse> => {
  return post("user/login",params)
}

/**
 * 获取用户信息
 */
export const getUser = ():Promise<IResponse> => {
  return post("user/getUser")
}

export const loginData = () : Promise<IResponse> => {
  return get("user/loginData")
}